#Exerccio 4.2#

cervejas <- c("chope","lata","garrafa","chope","garrafa", "garrafa","lata","lata","nenhuma","lata","garrafa","garrafa", "garrafa","lata","lata","lata","garrafa","lata","chope","nenhuma", "garrafa","garrafa","garrafa","chope","garrafa","garrafa","chope","garrafa","lata","lata")
cervejas
graf1 <- barplot(sort(table(cervejas)))
graf2 <- dotchart(sort(table(cervejas)))

#A melhor razo dado/tinta  mostrada pelo graf2(dotchart).

#Exerccio 4.3 Caixetais #

caixeta <- read.csv("caixeta.csv", as.is=T)
caixeta
caixeta$dap <- caixeta$cap/pi
dap.h <- hist(caixeta$dap)
table(caixeta$local)
chauas.h <- hist(caixeta$h[caixeta$local=="chauas"], xlim=c(0,200))
jureia.h <- hist(caixeta$h[caixeta$local=="jureia"], xlim=c(0,200))
retiro.h <- hist(caixeta$h[caixeta$local=="retiro"], xlim=c(0,200))

#Sim, existem diferenas entre as estruturas (distribuio de tamanhos) dos caixetais#

#Exerccio 4.4 Eucaliptos #

egrandis<-read.csv("egrandis.csv", head=T, sep=";")
egrandis
summary(egrandis)
boxregiao <- boxplot(egrandis$dap~egrandis$regiao)
boxrotao <- boxplot(egrandis$dap~egrandis$rotacao)
qqnorm(egrandis$ht)
qqline(egrandis$ht)

